import { Schema } from "koishi"

export const name = "custom-locales"

export const Config = Schema.object({
  locales: Schema.array(String),
  keys: Schema.array(String),
})

export function apply(ctx, config) {
  for (const locale of config.locales) ctx.i18n.define(locale, "", "")
  for (const key of config.keys) ctx.i18n.define("", key, "")
}
